// File: BlClass.h( V0.1.0.1 )
#if !defined(_BEAUTIFULLOVER_CLASS_H_)         
#define _BEAUTIFULLOVER_CLASS_H_

/* By C++ language compiler */
#ifdef __cplusplus
extern "C" {
#endif    
//-------------------------------------------------------------------------
#include "mmsystem.h"

#pragma comment(lib,"winmm.lib")

class CBlDebug
{
public:
	CBlDebug(){}
	~CBlDebug(){}
	void plPlaySound(TCHAR *szWavFile)
	{
		PlaySound (szWavFile, NULL, SND_FILENAME | SND_ASYNC) ;
	}
	void plMsgBox()
	{
		::MessageBox (NULL, "ccc", "Btfl Debug Msg", 0) ;
	}
	
	int CDECL plMsgBox (TCHAR * szCaption, TCHAR * szFormat, ...)
	{
		TCHAR   szBuffer [1024] ;
		va_list pArgList ;
		
		// The va_start macro (defined in STDARG.H) is usually equivalent to:
		// pArgList = (char *) &szFormat + sizeof (szFormat) ;
		
		va_start (pArgList, szFormat) ;
		
		// The last argument to wvsprintf points to the arguments
		
		_vsntprintf (szBuffer, sizeof (szBuffer) / sizeof (TCHAR), 
			szFormat, pArgList) ;
		
		// The va_end macro just zeroes out pArgList for no good reason
		
		va_end (pArgList) ;
		
		return MessageBox (NULL, szBuffer, szCaption, 0) ;
	}
};
//=====================================================================
	/* extern "C" { */
#ifdef __cplusplus
}
#endif

#endif
